package com.atguigu.common.to;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 *
 */
@Data
public class SkuSearchVo {


    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    /**
     * "skuImg": {
     *         "type": "keyword",
     *         "index": false,
     *         "doc_values": false
     *       },
     */
    private String skuImg;

    private Long saleCount;

    private Boolean hasStock;

    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    /**
     *      "brandName": {
     *         "type": "keyword",
     *         "index": false,
     *         "doc_values": false
     *       },
     *       "brandImg": {
     *         "type": "keyword",
     *         "index": false,
     *         "doc_values": false
     *       },
     *       "catalogName": {
     *         "type": "keyword",
     *         "index": false,
     *         "doc_values": false
     *       },
     */
    private String brandName;
    private String brandImg;
    private String catalogName;

    private List<Attr> attrs;

    @Data
    public static class Attr{
        private Long attrId;
        /**
         * "attrName": {
         *             "type": "keyword",
         *             "index": false,
         *             "doc_values": false
         *           },
         */
        private String attrName;
        private String attrValue;
    }
}
